import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

import './assets/css/reset.css'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

import gCom from './common'
for(let item in gCom){
  Vue.component(item,gCom[item])
}

Vue.prototype.$imgUrl = 'http://localhost:8000'

//全局引入echart
let echarts = require('echarts')
Vue.prototype.$echart = echarts

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
